package com.party.core.dao.read.member;

import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.member.Member;
import com.party.core.model.member.MemberGroupInfo;
import com.party.core.model.member.PartnerInfoDetails;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by huang wu ming
 * on 2018/2/6.
 */
@Repository
public interface MemberGroupInfoReadDao extends BaseReadDao<MemberGroupInfo> {
    MemberGroupInfo findByMemberId(@Param("memberId") String memberId);

    /**
     * 初始化MemberGroupInfo数据
     * @return
     */
    List<Member> getMemberId();

    /** 
    * @Description: 通过memberId获取合作商详细信息
    * @Param:
    * @return:  
    * @Author: Hua Qunhao
    * @Date: 2019-02-26-0026 
    */ 
    PartnerInfoDetails getPartnerInfoByMemberId(Member member);
}
